package com.xbongbong.pro.aiassistant.manager.feign;

import com.xbongbong.pro.sms.pojo.dto.SmsRabbitMqDTO;
import com.xbongbong.pro.weblist.pojo.dto.WorkReportUserStatisicDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @description:
 * @Author: hongxiao
 * @date: 2020-02-22 17:48
 * @since
 */
@FeignClient(name = "pro-web-pc", contextId = "businessFeignClient")
public interface BusinessFeignClient {
    /**
     * 获取工作报告人员统计
     *
     * @param workReportUserStatisicDTO 获取工作报告人员统计
     * @return
     * @throws
     * @author hongxiao
     * @date: 2020-02-22 17:53
     */
    @RequestMapping(value = "/pro/v1/workReport/userStatisticsList", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
    String workReportUserStatisticsList(WorkReportUserStatisicDTO workReportUserStatisicDTO, @RequestParam("lang") String lang);

    @RequestMapping(value = "/pro/v1/sms/send", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
    String smsSend(SmsRabbitMqDTO smsRabbitMqDTO, @RequestParam("lang") String lang);

}
